/* 购物车样式文件 */
*{
    margin: 0;
    padding: 0;
    /* background-color: #F8F8F8; */
}
.shopping{
    width: 100%;
    height: 100vh;
    background-color: #F8F8F8;
}

.shopping-title{
    width: 100%;
    height: 50px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

.cart-items {
    padding: 10px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
    width: 90%;
    margin-left: 2%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    /* background: white;
    border-radius: 8px; */
    padding: 10px;
    /* margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
    align-items: center;
    position: relative;
}

.item-checkbox {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.item-image {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}

.item-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 10px;
}

.item-quantity {
    display: flex;
    align-items: center;
    position: absolute;
    right: 20px;
    bottom: 20px;
    border: #999 solid 1px;
    border-radius: 40px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity {
    margin: 0 10px;
    font-size: 14px;
}

.item-delete {
    font-size: 12px;
    color: #999;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.cart-footer {
    position: fixed;
    top: 85.5vh;
    left: 0;
    width: 100%;
    height: 50px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.footer-left {
    display: flex;
    align-items: center;
}

.total-info {
    margin-left: 15px;
}

.total-info div:first-child {
    font-size: 16px;
    font-weight: bold;
    color: #ff4757;
}

.total-count {
    font-size: 12px;
    color: #999;
}

.checkout-btn {
    background: #ff4757;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
}

.empty-text {
    font-size: 18px;
    color: #999;
    margin-bottom: 10px;
}

.empty-subtext {
    font-size: 14px;
    color: #ccc;
}


/* 猜你喜欢 */
.cartRank-title{
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    >img{
        width: 20px;
    }
    >span{
        font-size: 16px;
        font-weight: 600;
    }
}

/* 瀑布流布局 */
.waterfall-container {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: white;
}

.waterfall-column {
    width: 48%;
    display: flex;
    flex-direction: column;
}

.waterfall-item {
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.waterfall-item img {
    width: 100%;
    height: auto;
    display: block;
}

.waterfall-item-title {
    padding: 8px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.waterfall-item-price {
    padding: 0 8px 8px;
    font-size: 16px;
    font-weight: bold;
    color: #ff4757;
}